package com.worthtech.billportal.bean;

import java.util.Date;

/**
 * WtTermAuthId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtTermAuthId implements java.io.Serializable {

	// Fields

	private String termCode;
	private String termSimno;
	private Date termDate;

	// Constructors

	/** default constructor */
	public WtTermAuthId() {
	}

	/** minimal constructor */
	public WtTermAuthId(String termCode, String termSimno) {
		this.termCode = termCode;
		this.termSimno = termSimno;
	}

	/** full constructor */
	public WtTermAuthId(String termCode, String termSimno, Date termDate) {
		this.termCode = termCode;
		this.termSimno = termSimno;
		this.termDate = termDate;
	}

	// Property accessors

	public String getTermCode() {
		return this.termCode;
	}

	public void setTermCode(String termCode) {
		this.termCode = termCode;
	}

	public String getTermSimno() {
		return this.termSimno;
	}

	public void setTermSimno(String termSimno) {
		this.termSimno = termSimno;
	}

	public Date getTermDate() {
		return this.termDate;
	}

	public void setTermDate(Date termDate) {
		this.termDate = termDate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtTermAuthId))
			return false;
		WtTermAuthId castOther = (WtTermAuthId) other;

		return ((this.getTermCode() == castOther.getTermCode()) || (this
				.getTermCode() != null
				&& castOther.getTermCode() != null && this.getTermCode()
				.equals(castOther.getTermCode())))
				&& ((this.getTermSimno() == castOther.getTermSimno()) || (this
						.getTermSimno() != null
						&& castOther.getTermSimno() != null && this
						.getTermSimno().equals(castOther.getTermSimno())))
				&& ((this.getTermDate() == castOther.getTermDate()) || (this
						.getTermDate() != null
						&& castOther.getTermDate() != null && this
						.getTermDate().equals(castOther.getTermDate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTermCode() == null ? 0 : this.getTermCode().hashCode());
		result = 37 * result
				+ (getTermSimno() == null ? 0 : this.getTermSimno().hashCode());
		result = 37 * result
				+ (getTermDate() == null ? 0 : this.getTermDate().hashCode());
		return result;
	}

}